/**
 * @description 想要自动导入导出所有list文件夹下的模块
 * @author 盘古他爹
 */

const fs = require("fs")
const path = require("path")
const listModels: any[] = []
const filePath = path.resolve(__dirname, "./")
function autoListModel(filePath: string) {
    fs.readdirSync(filePath).forEach((file:any) => {
        // console.log("file", file);
        if (file !== "index.ts") {
            const model = require(filePath+"/"+file)
            listModels.push(model)
            
        }
        
    })
}

autoListModel(filePath)

export {
    listModels
}